package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcReviseBedMapper;
import com.csun.cmny.provider.model.domain.OmcReviseBed;
import com.csun.cmny.provider.model.vo.revise.ReviseBedVo;
import com.csun.cmny.provider.service.OmcReviseBedService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-09-18 16:37
 * @Description: the class omc revise bed service impl
 */
@Service
@Transactional
public class OmcReviseBedServiceImpl extends BaseService<OmcReviseBed>
        implements OmcReviseBedService {

    @Resource
    private OmcReviseBedMapper omcReviseBedMapper;

    /**
     * query revise bed vo list by revise id
     *
     * @param reviseId the revise id
     *
     * @return the revise bed vo list
     */
    @Override
    public List<ReviseBedVo> queryListByReviseId(Long reviseId) {

        return omcReviseBedMapper.queryListByReviseId(reviseId);
    }
}
